SPB Git

Repository Public

page.tsx 923 B 27 lines tsx

1import type { Metadata } from "next";2import { Gallery } from "@/components/gallery/Gallery";3import { PageIntro } from "@/components/ui/Section";4import { photos } from "@/lib/data";5import { getDict, type Locale } from "@/lib/i18n";6import { pageMetadata } from "@/lib/seo";78type Props = { params: Promise<{ locale: Locale }> };910export async function generateMetadata({ params }: Props): Promise<Metadata> {11  return pageMetadata((await params).locale, "gallery", "/gallery");12}1314export default async function GalleryPage({ params }: Props) {15  const { locale } = await params;16  const g = getDict(locale).gallery;17  return (18    <>19      <PageIntro eyebrow={g.eyebrow} title={g.title} intro={g.intro} />20      <div className="shell">21        <Gallery photos={photos} locale={locale} />22        <p className="label mt-16 border-t border-line pt-6 !normal-case !tracking-normal">{g.note}</p>23      </div>24    </>25  );26}27
Files main
Menu

Theme